WeDataNodeView = function () {

}
WeDataNodeView.prototype = {
    Init: function () {
        uiRoot.o_WeDataNodeView = this;
    },

    loadWeData: function (weDataObjDic) {
        let keyArr = Object.keys(weDataObjDic)

        //let root = document.getElementById('div00');
        let weCardArr = [];
        for (let i = 0; i < keyArr.length; i++) {
            let weKey = keyArr[i];
            let weObj = weDataObjDic[weKey];
            let card = S_creatdiv(rootDiv);
            card.m_weObj = weObj;
            card.style.width = 200 + "px";
            card.style.height = "500px";
            card.innerHTML = weObj.m_className;
            card.style.left = card.offsetWidth * (i * 1.2) + "px";
            card.style.top = 100 + "px";
            let ii = 0;
            Object.keys(weObj.m_fieldArr).forEach(function (key) {
                let fieldDara = weObj.m_fieldArr[key];
                //console.log(weObj.m_className + "...数据........" + key + "=" + fieldDara.o_fieldName + "...." + fieldDara.o_fieldType)
                let field = S_creatWeDataField(card, fieldDara.o_chineseName, fieldDara.o_fieldName);
                //field.input = "&" + (key + "=" + weObj[key]).replace(" ", "_");
                //field.style.height = height + "px";
                field.style.left = "0px";
                field.style.top = ((field.clientHeight + 10) * ii + 30) + "px";
                ii++;
            });
            CardDrag_SetDrag(card);
            weCardArr[i] = card
        }
    }
}

WeDataNodeView.GetInstance = function () {
    if (uiRoot.o_WeDataNodeView == null) {
        let nn = new WeDataNodeView();
        nn.Init();
    }
    return uiRoot.o_WeDataNodeView;
}


WeDataNodeView.test = function (rootDiv) {
    let weDataObjDic = {}
    weDataObjDic.mm1 = new U3dCore.CObjData();
    weDataObjDic.mm2 = new U3dCore.CObjData();
    weDataObjDic.mm3 = new U3dCore.PartCfg_Obj();
    weDataObjDic.mm4 = new U3dCore.PartCfg_004_RoleProperty();
    weDataObjDic.mm5 = new U3dCore.PartData_004_RoleProperty();
    weDataObjDic.mm6 = new U3dCore.PartCfg_021_2DSpriteObjData();

}